package DoubleLinkedList;

public class PeopleNode {
        private int number;
        private String name;
        private String petName;
        private PeopleNode next;
        private PeopleNode pre;

        public PeopleNode getPre() {
            return pre;
        }

        public void setPre(PeopleNode pre) {
            this.pre = pre;
        }
        public int getNumber() {
            return number;
        }

        public void setNumber(int number) {
            this.number = number;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPetName() {
            return petName;
        }

        public void setPetName(String petName) {
            this.petName = petName;
        }

        public PeopleNode getNext() {
            return next;
        }

        public void setNext(PeopleNode next) {
            this.next = next;
        }

        public PeopleNode(int number, String name, String petName) {
            this.number = number;
            this.name = name;
            this.petName = petName;
        }

    }

